<?php

class RobotResetRandomShopCountAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT
    );

    /**
     * 重置机器人随机商店的计数
     * @param $userId
     * @return SzResponse
     */
    public function execute($userId)
    {
        $randomShop = ShopService::get()->resetRobotRandomShopCount($userId);
        return $this->buildResponse(array(
            'randomShop' => $randomShop->toArray()
        ));
    }
}